package com.lzc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzc.pojo.dto.CommentDto;
import com.lzc.pojo.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    // 查找所有评论
    List<CommentDto> findArticleComments(@Param("articleId") Long articleId,@Param("page") Integer page,@Param("size") Integer size);
}
